


class FileManager {


    static loadImage(url: string) {
        return new Promise((resolve, reject) => {
            const img = new Image();
            console.log(url);
            img.src = url;
            img.onload = function () {
                resolve(img);
            }
            img.onerror = function (e) {
                reject(e)
            }
        })

    }
}

export default FileManager;